package QC.MessageBox.beans.wxmsg.media;

/**
 * Created by Andaren on 2017/6/5.
 * Used for: 图文消息的文章
 */
public class Article {
    // 新增为永久素材时，全部参数都必须
    private String title;                   //	标题

    private String thumb_media_id;          //	图文消息缩略图的media_id，可以在基础支持-上传多媒体文件接口中获得

    private String author;                  //	作者

    private String digest;                  //	图文消息的摘要，仅有单图文消息才有摘要，多图文此处为空

    private Integer show_cover_pic;          //	是否显示封面，0为false，即不显示，1为true，即显示

    private String content;                 //	图文消息的具体内容，支持HTML标签，必须少于2万字符，小于1M，且此处会去除JS,涉及图片url必须来源"上传图文消息内的图片获取URL"接口获取。外部图片url将被过滤。

    private String content_source_url;      //	图文消息的原文地址，即点击“阅读原文”后的URL

    public String getTitle() {
        return title;
    }

    public Article setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getThumb_media_id() {
        return thumb_media_id;
    }

    public Article setThumb_media_id(String thumb_media_id) {
        this.thumb_media_id = thumb_media_id;
        return this;
    }

    public String getAuthor() {
        return author;
    }

    public Article setAuthor(String author) {
        this.author = author;
        return this;
    }

    public String getDigest() {
        return digest;
    }

    public Article setDigest(String digest) {
        this.digest = digest;
        return this;
    }

    public Integer getShow_cover_pic() {
        return show_cover_pic;
    }

    public Article setShow_cover_pic(Integer show_cover_pic) {
        this.show_cover_pic = show_cover_pic;
        return this;
    }

    public String getContent() {
        return content;
    }

    public Article setContent(String content) {
        this.content = content;
        return this;
    }

    public String getContent_source_url() {
        return content_source_url;
    }

    public Article setContent_source_url(String content_source_url) {
        this.content_source_url = content_source_url;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Article{");
        sb.append("title='").append(title).append('\'');
        sb.append(", thumb_media_id='").append(thumb_media_id).append('\'');
        sb.append(", author='").append(author).append('\'');
        sb.append(", digest='").append(digest).append('\'');
        sb.append(", show_cover_pic='").append(show_cover_pic).append('\'');
        sb.append(", content='").append(content).append('\'');
        sb.append(", content_source_url='").append(content_source_url).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
